Nevron Open Vision Documentation
Nevron.Nov.Dom Namespace / NSchema Class / AddMember Method / AddMember(String,Type,Object,FunctionResult<Object,NNode>,Function<NNode,Object>) Method


In This Topic
    AddMember(String,Type,Object,FunctionResult<Object,NNode>,Function<NNode,Object>) Method
    In This Topic
    Adds a property backed by a pair of getter and setter delegates.
    Syntax
    'Declaration
     
    
    Public Overloads Function AddMember( _
       ByVal name As System.String, _
       ByVal type As System.Type, _
       ByVal defaultValue As System.Object, _
       ByVal getter As Nevron.Nov.FunctionResult(Of Object,NNode), _
       ByVal setter As Nevron.Nov.Function(Of NNode,Object) _
    ) As NProperty
    'Usage
     
    
    Dim instance As NSchema
    Dim name As System.String
    Dim type As System.Type
    Dim defaultValue As System.Object
    Dim getter As Nevron.Nov.FunctionResult(Of Object,NNode)
    Dim setter As Nevron.Nov.Function(Of NNode,Object)
    Dim value As NProperty
     
    value = instance.AddMember(name, type, defaultValue, getter, setter)
    public NProperty AddMember( 
       System.string name,
       System.Type type,
       System.object defaultValue,
       Nevron.Nov.FunctionResult<object,NNode> getter,
       Nevron.Nov.Function<NNode,object> setter
    )

    Parameters

    name
    type
    defaultValue
    getter
    setter
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also